controllerModule.controller("MerchantDetailCtrl",["$scope","$routeParams","$http",function($scope,$routeParams,$http){
    $scope.businessId = $routeParams.businessId;
    $scope.businessDetail = {};
    $http({
        method: 'get',
        url: rootPath + '/api/business/visit',
        params:{
        	"visitType":'1',
        	"businessId": $scope.businessId
        }
    }).then(function successCallback(response) {
    	console.log(response);
    }, function errorCallback(response) {
        alert(response)
    });
    $http({
        method: 'post',
        url: rootPath + '/api/business/findForPage',
        data:{
        	"visitFrom":"weixin",
        	"businessId":$scope.businessId
        }
    }).then(function successCallback(response) {
    	console.log(response);
    	$scope.businessDetail = response.data.data.data[0];
    	console.log($scope.businessDetail);
    }, function errorCallback(response) {
        alert(response)
    });
}]);